package com.wangp.procurement;

import com.wangp.procurement.job.MyJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import sun.net.www.http.HttpClient;

/**
 * @author 21398
 */
@SpringBootApplication
@EnableTransactionManagement
@Slf4j
public class buyApplication implements ApplicationRunner {

    @Autowired
    private MyJob myJob;

    public static void main(String[] args) {
        SpringApplication.run(buyApplication.class, args);

    }

    @Override
    public void run(final ApplicationArguments args) throws Exception {
        log.info("------------------=================start");
        //myJob.getMethod();
        log.info("------------------=================end");
    }

}
